﻿
//imediat function like a namespace
(function () {

    function queryDom() {
        var x = document.getElementById("test");
    }

    
    //or
    //var x = document.querySelector("#test");
    //console.log(x);
    //var fruit = ["apple","orange","banana","strawbery","cheery"];
    //fruit.push("pear");
    //fruit.pop();
    
    ////var vegetables = ["carrot","brocoli","cauflowd"];

    //fruit.splice(1, 2, "mellon", "grape");

    ////fruit = fruit.filter(function (i) { return i[0]=== "a" });

    //var dog = {
    //    breed: "German",
    //    bark: function () {
    //    }
    //};
    //dog.breed = "German Shepherd";
    //dog.bark = function () { console.log("woof")};

})();  